package com.woniu.cinema.api;

import com.woniu.cinema.domain.Actor;
import com.woniu.cinema.domain.Cinema;
import com.woniu.cinema.vo.HallMovieVo;
import com.woniu.cinema.vo.MovieVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cinema-service")
public interface CinemaFeignClient {

    @RequestMapping(value = "feign/cinema/hallmovie/queryHallMovieById")
    public HallMovieVo queryHallMovieById4Feign(@RequestParam("hallMovieId") Integer hallMovieId);

    @RequestMapping(value = "feign/cinema/seat/batchUpdateSeatStatus")
    public Integer batchUpdateSeatStatus(@RequestParam("seatIdList") List<Integer> seatIdList);

    @RequestMapping(value = "feign/cinema/seat/revertBatchUpdateSeatStatus")
    public Integer revertBatchUpdateSeatStatus(@RequestParam("seatIdList") List<Integer> seatIdList);

    @RequestMapping("feign/cinema/actor/queryById")
    public List<Actor> queryById(@RequestParam("actorId")  Integer actorId);

    @RequestMapping(value = "feign/cinema/cinema/queryCinemaById")
    public List<Cinema> queryCinemaById(@RequestParam("cinemaId") Integer cinemaId);


    @RequestMapping("feign/cinema/movie/queryMovieById")
    public List<MovieVo> queryMovieById(@RequestParam("movieId") Integer movieId);
}
